/**
 * @description 用于模拟ajax请求, 在正式环境时, 去掉xyz.mock.js引用
 * @author 
 */
define(['jquery.mockjax'], function() {
	// ------------------------ sample -----------------
	$.mockjax({
		url: ctPath + '/sample/1',
		type: 'GET',
		status: 200,
		responseTime: 1000,
		responseText: {status: 1, data: {DRAFT: 80, INFORECEIVED: 120, SHIPMENTRECEIVED: 30, PICKEDUP: 14, ONDELIVERY: 25, DELIVERED: 321, SHIPPED: 20}}
	});
	$.mockjax({
		url: ctPath + '/sample/1',
		type: 'post',
		status: 200,
		responseTime: 2000,
		responseText: {status: 0, msg: '失败'}
	});
	
	// ------------------------  -----------------
});